<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GimpEnumWidgets: GIMP 3 Widgets Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Widgets Library Reference Manual">
<link rel="up" href="libgimpwidgets-utils.html" title="Part VI. GIMP Widgets Utilities">
<link rel="prev" href="libgimpwidgets3-GimpIcons.html" title="GimpIcons">
<link rel="next" href="libgimpwidgets3-GimpPropWidgets.html" title="GimpPropWidgets">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#libgimpwidgets3-GimpEnumWidgets.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libgimpwidgets-utils.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libgimpwidgets3-GimpIcons.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgimpwidgets3-GimpPropWidgets.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libgimpwidgets3-GimpEnumWidgets"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpwidgets3-GimpEnumWidgets.top_of_page"></a>GimpEnumWidgets</span></h2>
<p>GimpEnumWidgets — A set of utility functions to create widgets
based on enums.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libgimpwidgets3-GimpEnumWidgets.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()">gimp_enum_radio_box_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-box-new-with-range" title="gimp_enum_radio_box_new_with_range ()">gimp_enum_radio_box_new_with_range</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-frame-new" title="gimp_enum_radio_frame_new ()">gimp_enum_radio_frame_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-frame-new-with-range" title="gimp_enum_radio_frame_new_with_range ()">gimp_enum_radio_frame_new_with_range</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-icon-box-new" title="gimp_enum_icon_box_new ()">gimp_enum_icon_box_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-icon-box-new-with-range" title="gimp_enum_icon_box_new_with_range ()">gimp_enum_icon_box_new_with_range</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-icon-box-set-child-padding" title="gimp_enum_icon_box_set_child_padding ()">gimp_enum_icon_box_set_child_padding</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libgimpwidgets3-GimpEnumWidgets.description"></a><h2>Description</h2>
<p>A set of utility functions to create widgets based on enums.</p>
</div>
<div class="refsect1">
<a name="libgimpwidgets3-GimpEnumWidgets.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gimp-enum-radio-box-new"></a><h3>gimp_enum_radio_box_new ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_enum_radio_box_new (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
                         <em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
                         <em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
                         <em class="parameter"><code><span class="type">GDestroyNotify</span> callback_data_destroy</code></em>,
                         <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
<p>Creates a new group of <a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a> representing the enum
values.  A group of radiobuttons is a good way to represent enums
with up to three or four values. Often it is better to use a
<a class="link" href="GimpEnumComboBox.html" title="GimpEnumComboBox"><span class="type">GimpEnumComboBox</span></a> instead.</p>
<div class="refsect3">
<a name="gimp-enum-radio-box-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>enum_type</p></td>
<td class="parameter_description"><p>the <span class="type">GType</span> of an enum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to connect to the "toggled" signal of each
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButton</span></a> that is created. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data_destroy</p></td>
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>callback_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_button</p></td>
<td class="parameter_description"><p>Returns the first button in the created group. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-enum-radio-box-new.returns"></a><h4>Returns</h4>
<p>a new <a href="https://developer.gnome.org/gtk3/GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a> holding a group of <a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-enum-radio-box-new-with-range"></a><h3>gimp_enum_radio_box_new_with_range ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_enum_radio_box_new_with_range (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
                                    <em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
                                    <em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
                                    <em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
                                    <em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
                                    <em class="parameter"><code><span class="type">GDestroyNotify</span> callback_data_destroy</code></em>,
                                    <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
<p>Just like <a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()"><code class="function">gimp_enum_radio_box_new()</code></a>, this function creates a group
of radio buttons, but additionally it supports limiting the range
of available enum values.</p>
<div class="refsect3">
<a name="gimp-enum-radio-box-new-with-range.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>minimum</p></td>
<td class="parameter_description"><p>the minimum enum value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>maximum</p></td>
<td class="parameter_description"><p>the maximum enum value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>enum_type</p></td>
<td class="parameter_description"><p>the <span class="type">GType</span> of an enum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to connect to the "toggled" signal of each
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButton</span></a> that is created. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data_destroy</p></td>
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>callback_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_button</p></td>
<td class="parameter_description"><p>Returns the first button in the created group. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-enum-radio-box-new-with-range.returns"></a><h4>Returns</h4>
<p>a new vertical <a href="https://developer.gnome.org/gtk3/GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a> holding a group of
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-enum-radio-frame-new"></a><h3>gimp_enum_radio_frame_new ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_enum_radio_frame_new (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
                           <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *label_widget</code></em>,
                           <em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
                           <em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
                           <em class="parameter"><code><span class="type">GDestroyNotify</span> callback_data_destroy</code></em>,
                           <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
<p>Calls <a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-box-new" title="gimp_enum_radio_box_new ()"><code class="function">gimp_enum_radio_box_new()</code></a> and puts the resulting vbox into a
<a href="https://developer.gnome.org/gtk3/GtkFrame.html#GtkFrame-struct"><span class="type">GtkFrame</span></a>.</p>
<div class="refsect3">
<a name="gimp-enum-radio-frame-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>enum_type</p></td>
<td class="parameter_description"><p>the <span class="type">GType</span> of an enum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>label_widget</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> to use as label for the frame
that will hold the radio box. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to connect to the "toggled" signal of each
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButton</span></a> that is created. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data_destroy</p></td>
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>callback_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_button</p></td>
<td class="parameter_description"><p>Returns the first button in the created group. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-enum-radio-frame-new.returns"></a><h4>Returns</h4>
<p>a new <a href="https://developer.gnome.org/gtk3/GtkFrame.html#GtkFrame-struct"><span class="type">GtkFrame</span></a> holding a group of <a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-enum-radio-frame-new-with-range"></a><h3>gimp_enum_radio_frame_new_with_range ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_enum_radio_frame_new_with_range (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
                                      <em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
                                      <em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
                                      <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *label_widget</code></em>,
                                      <em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
                                      <em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
                                      <em class="parameter"><code><span class="type">GDestroyNotify</span> callback_data_destroy</code></em>,
                                      <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
<p>Calls <a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-radio-box-new-with-range" title="gimp_enum_radio_box_new_with_range ()"><code class="function">gimp_enum_radio_box_new_with_range()</code></a> and puts the resulting
vertical box into a <a href="https://developer.gnome.org/gtk3/GtkFrame.html#GtkFrame-struct"><span class="type">GtkFrame</span></a>.</p>
<div class="refsect3">
<a name="gimp-enum-radio-frame-new-with-range.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>enum_type</p></td>
<td class="parameter_description"><p>the <span class="type">GType</span> of an enum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>minimum</p></td>
<td class="parameter_description"><p>the minimum enum value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>maximum</p></td>
<td class="parameter_description"><p>the maximum enum value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>label_widget</p></td>
<td class="parameter_description"><p>a widget to put into the frame that will hold the radio box. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to connect to the "toggled" signal of each
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButton</span></a> that is created. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data_destroy</p></td>
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>callback_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_button</p></td>
<td class="parameter_description"><p>Returns the first button in the created group. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-enum-radio-frame-new-with-range.returns"></a><h4>Returns</h4>
<p>a new <a href="https://developer.gnome.org/gtk3/GtkFrame.html#GtkFrame-struct"><span class="type">GtkFrame</span></a> holding a group of <a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-enum-icon-box-new"></a><h3>gimp_enum_icon_box_new ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_enum_icon_box_new (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
                        <em class="parameter"><code>const <span class="type">gchar</span> *icon_prefix</code></em>,
                        <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/gtk3-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>,
                        <em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
                        <em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
                        <em class="parameter"><code><span class="type">GDestroyNotify</span> callback_data_destroy</code></em>,
                        <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
<p>Creates a horizontal box of radio buttons with named icons. The
icon name for each icon is created by appending the enum_value's
nick to the given <em class="parameter"><code>icon_prefix</code></em>
.</p>
<div class="refsect3">
<a name="gimp-enum-icon-box-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>enum_type</p></td>
<td class="parameter_description"><p>the <span class="type">GType</span> of an enum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>icon_prefix</p></td>
<td class="parameter_description"><p>the prefix of the group of icon names to use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>icon_size</p></td>
<td class="parameter_description"><p>the icon size for the icons</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to connect to the "toggled" signal of each
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButton</span></a> that is created. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data_destroy</p></td>
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>callback_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_button</p></td>
<td class="parameter_description"><p>Returns the first button in the created group. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-enum-icon-box-new.returns"></a><h4>Returns</h4>
<p>a new horizontal <a href="https://developer.gnome.org/gtk3/GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a> holding a group of <a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-enum-icon-box-new-with-range"></a><h3>gimp_enum_icon_box_new_with_range ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_enum_icon_box_new_with_range (<em class="parameter"><code><span class="type">GType</span> enum_type</code></em>,
                                   <em class="parameter"><code><span class="type">gint</span> minimum</code></em>,
                                   <em class="parameter"><code><span class="type">gint</span> maximum</code></em>,
                                   <em class="parameter"><code>const <span class="type">gchar</span> *icon_prefix</code></em>,
                                   <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/gtk3-Themeable-Stock-Images.html#GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>,
                                   <em class="parameter"><code><span class="type">GCallback</span> callback</code></em>,
                                   <em class="parameter"><code><span class="type">gpointer</span> callback_data</code></em>,
                                   <em class="parameter"><code><span class="type">GDestroyNotify</span> callback_data_destroy</code></em>,
                                   <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> **first_button</code></em>);</pre>
<p>Just like <a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-icon-box-new" title="gimp_enum_icon_box_new ()"><code class="function">gimp_enum_icon_box_new()</code></a>, this function creates a group
of radio buttons, but additionally it supports limiting the range
of available enum values.</p>
<div class="refsect3">
<a name="gimp-enum-icon-box-new-with-range.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>enum_type</p></td>
<td class="parameter_description"><p>the <span class="type">GType</span> of an enum.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>minimum</p></td>
<td class="parameter_description"><p>the minumim enum value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>maximum</p></td>
<td class="parameter_description"><p>the maximum enum value</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>icon_prefix</p></td>
<td class="parameter_description"><p>the prefix of the group of icon names to use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>icon_size</p></td>
<td class="parameter_description"><p>the icon size for the icons</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback</p></td>
<td class="parameter_description"><p>a callback to connect to the "toggled" signal of each
<a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButton</span></a> that is created. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data</p></td>
<td class="parameter_description"><p>data to pass to the <em class="parameter"><code>callback</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>callback_data_destroy</p></td>
<td class="parameter_description"><p>Destroy function for <em class="parameter"><code>callback_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>first_button</p></td>
<td class="parameter_description"><p>Returns the first button in the created group. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL may be passed instead of a pointer to a location."><span class="acronym">optional</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-enum-icon-box-new-with-range.returns"></a><h4>Returns</h4>
<p>a new horizontal <a href="https://developer.gnome.org/gtk3/GtkBox.html#GtkBox-struct"><span class="type">GtkBox</span></a> holding a group of <a href="https://developer.gnome.org/gtk3/GtkRadioButton.html#GtkRadioButton-struct"><span class="type">GtkRadioButtons</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-enum-icon-box-set-child-padding"></a><h3>gimp_enum_icon_box_set_child_padding ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gimp_enum_icon_box_set_child_padding (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *icon_box</code></em>,
                                      <em class="parameter"><code><span class="type">gint</span> xpad</code></em>,
                                      <em class="parameter"><code><span class="type">gint</span> ypad</code></em>);</pre>
<p>Sets the padding of all buttons in a box created by
<a class="link" href="libgimpwidgets3-GimpEnumWidgets.html#gimp-enum-icon-box-new" title="gimp_enum_icon_box_new ()"><code class="function">gimp_enum_icon_box_new()</code></a>.</p>
<div class="refsect3">
<a name="gimp-enum-icon-box-set-child-padding.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>icon_box</p></td>
<td class="parameter_description"><p>an icon box widget</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xpad</p></td>
<td class="parameter_description"><p>horizontal padding</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ypad</p></td>
<td class="parameter_description"><p>vertical padding</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>